<div class="tab_item" style="display:block;">
    <div class="ui_table">
        <form method="post">
            <fieldset>
                <legend>基本信息</legend>
                <div class="ui_table">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="70" align="right">姓名：</td>
                            <td><input type="text" class="text easyui-validatebox" name="realName" required="true"
                                       value="${(entity.realName)!''}"/></td>
                            <td width="70" align="right" valign="top" rowspan="2" style="padding-top:10px;">头像：</td>
                            <td rowspan="2">
                                <div class="portrait">
                                    <a href="javascript:void(0)"><img id="image_${pid}"
                                                                      src="<#if entity.portrait?? && entity.portrait?length gt 0>${(controller.appConfig.staticUrl)!''}${entity.portrait}<#else>${app.imagePath}/user.jpg</#if>"/><span>修改头像</span></a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td width="70" align="right">昵称：</td>
                            <td><input type="text" class="text easyui-validatebox" name="nickname"
                                       value="${(entity.nickname)!''}"/></td>
                        </tr>
                        <tr>
                            <td align="right">启用：</td>
                            <td>
                                <span class="radio_box">
                                    <input type="radio" class="radio" name="activeFlag" id="active_flag_1"
                                           <#if entity.activeFlag?? && entity.activeFlag == 1>checked</#if>
                                           value="1"/><label for="active_flag_1">启用</label>
                                </span>
                                <span class="radio_box">
                                    <input type="radio" class="radio" name="activeFlag" id="active_flag_0"
                                           <#if entity.activeFlag?? && entity.activeFlag == 1><#else>checked</#if>
                                           value="0"/><label for="active_flag_0">禁用</label>
                                </span>
                            </td>
                            <td align="right">性别：</td>
                            <td>
                                <span class="radio_box">
                                    <input type="radio" class="radio" name="gender" id="sex_1"
                                           <#if entity.gender?? && entity.gender == 1>checked</#if> value="1"/><label
                                        for="sex_1">男</label>
                                </span>
                                <span class="radio_box">
                                    <input type="radio" class="radio" name="gender" id="sex_2"
                                           <#if entity.gender?? && entity.gender == 1><#else>checked</#if>
                                           value="2"/><label for="sex_2">女</label>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">邮件：</td>
                            <td><input type="text" class="text easyui-validatebox" name="mail"
                                       value="${(entity.mail)!''}"/></td>
                            <td width="70" align="right">手机号码：</td>
                            <td><input type="text" class="text easyui-validatebox" required="true" name="mobile"
                                       value="${(entity.mobile)!''}"/></td>
                        </tr>
                        <tr>
                            <td align="right">身份证号：</td>
                            <td><input type="text" class="text easyui-validatebox" name="idNo"
                                       value="${(entity.idNo)!''}"/></td>

                            <td align="right">绑定卡号：</td>
                            <td><input type="text" class="text easyui-validatebox" name="cardNo"
                                       value="${(entity.cardNo)!''}"/></td>
                        </tr>
                        <tr>
                            <td align="right">账户余额：</td>
                            <td><input type="text" class="text easyui-validatebox"
                                       value="<#if entity.balance??&&entity.balance!=0>${entity.balance/100}<#else>0.00</#if>元"/>
                            </td>
                            <td align="right">换电金额：</td>
                            <td><input type="text" class="text easyui-validatebox"
                                       value="<#if entity.exchangeBalance??&&entity.balance!=0>${entity.exchangeBalance/100}<#else>0.00</#if>元"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">电动车ID：</td>
                            <td><input type="text" class="text easyui-validatebox"
                                       value="${(entity.bicycleId)!''}"/>
                            </td>
                            <td align="right">电池ID：</td>
                            <td><input type="text" class="text easyui-validatebox"
                                       value="${(entity.batteryId)!''}"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">登录时间：</td>
                            <td><input class="text easyui-validatebox"
                                       value="<#if entity.lastLoginTime??>${entity.lastLoginTime?string('yyyy-MM-dd HH:mm:ss')}</#if>"/></td>
                            <td align="right">创建时间：</td>
                            <td><input class="text easyui-validatebox"
                                       value="${entity.createTime?string('yyyy-MM-dd HH:mm:ss')}"/></td>
                        </tr>

                            <#--新增：点击查看，查看运营商和代理商-->
                            <td align="right">运营商：</td>
                            <td>
                                <input type="text" class="text easyui-validatebox" editable="false"
                                       value="${(agentInfo.agentName)!''}"
                                />
                            </td>
                            <td align="right">代理商：</td>
                            <td>
                                <input type="text" class="text easyui-validatebox" editable="false"
                                       value="${(agencyInfo.agencyName)!''}"
                                />
                            </td>


                    </table>
                </div>
            </fieldset>
        </form>
    </div>
</div>


